package com.zys.http.extension.completion.properties.language;


import com.intellij.icons.AllIcons;
import com.intellij.openapi.fileTypes.LanguageFileType;
import com.intellij.openapi.util.NlsContexts;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

/**
 * @author zys
 * @since 2025-08-19
 */
public class HttpPropertiesFileType extends LanguageFileType {
    public static final HttpPropertiesFileType INSTANCE = new HttpPropertiesFileType();

    protected HttpPropertiesFileType() {
        super(HttpPropertiesLanguage.INSTANCE);
    }

    @Override
    public @NonNls @NotNull String getName() {
        return "HttpProperties";
    }

    @Override
    public @NlsContexts.Label @NotNull String getDescription() {
        return "HttpProperties";
    }

    @Override
    public @NotNull String getDefaultExtension() {
        return ".httpProperties";
    }

    @Override
    public Icon getIcon() {
        return AllIcons.FileTypes.Properties;
    }
}
